import 'package:oramemo/generated/json/base/json_field.dart';
import 'package:oramemo/generated/json/voice_record_entity.g.dart';
import 'dart:convert';
export 'package:oramemo/generated/json/voice_record_entity.g.dart';

@JsonSerializable()
class VoiceRecordEntity {
	int? total;
	List<VoiceRecordRows>? rows;
	int? code;
	String? msg;

	VoiceRecordEntity();

	factory VoiceRecordEntity.fromJson(Map<String, dynamic> json) => $VoiceRecordEntityFromJson(json);

	Map<String, dynamic> toJson() => $VoiceRecordEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class VoiceRecordRows {
	String? createTime;
	VoiceRecordRowsParams? params;
	int? id;
	int? deviceId;
	int? userId;
	int? voiceType;
	int? aiPlatform;
	int? status;
	int? readStatus;
	String? voiceFolderId;
	String? voicePath;
	String? voiceContent;
	String? voiceTransliterate;
	int? voiceDuration;

	VoiceRecordRows();

	factory VoiceRecordRows.fromJson(Map<String, dynamic> json) => $VoiceRecordRowsFromJson(json);

	Map<String, dynamic> toJson() => $VoiceRecordRowsToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class VoiceRecordRowsParams {


	VoiceRecordRowsParams();

	factory VoiceRecordRowsParams.fromJson(Map<String, dynamic> json) => $VoiceRecordRowsParamsFromJson(json);

	Map<String, dynamic> toJson() => $VoiceRecordRowsParamsToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}